package cn.zl.ymcc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zl
 * @since 2025-10-21
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("t_course_market")
public class CourseMarket implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 课程id
     */
    @TableId("id")
    private Long id;

    /**
     * 收费规则：，收费1免费，2收费
     */
    @TableField("charge")
    private Byte charge;

    /**
     * 咨询qq
     */
    @TableField("qq")
    private String qq;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 原价
     */
    @TableField("price_old")
    private BigDecimal priceOld;

    @TableField("valid_days")
    private Integer validDays;
}